package com.example.service;

import com.example.bean.UserBean;
import com.example.mapper.UserMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    //将dao层属性注入service层
    @Resource
    private UserMapper userMapper;

    public UserBean LoginIn(String name, String password) {
        return userMapper.getInfo(name, password);
    }

    public void Insert(String name, String password) {
        userMapper.saveInfo(name, password);
    }


}